package com.fengxing.ams.web.task;

import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.List;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;

import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.fengxing.ams.pub.AMSException;
import com.fengxing.ams.pub.util.MD5Util;
import com.fengxing.ams.pub.util.StringUtil;
import com.fengxing.ams.pub.vo.UploadRuleVO;
import com.fengxing.ams.web.common.IContextManager;
import com.fengxing.ams.web.facade.mouble.company.CompanyImportVO;
import com.fengxing.ams.web.facade.mouble.company.ICompanyImportDAO;
import com.fengxing.ams.web.facade.mouble.student.IStudentSCMDAO;
import com.fengxing.ams.web.facade.mouble.student.StudentSCMVO;
import com.fengxing.ams.web.facade.mouble.upload.IUploadDetailDAO;
import com.fengxing.ams.web.facade.mouble.upload.UploadDetailVO;
import com.fengxing.ams.web.facade.mouble.upload.UploadVO;
import com.fengxing.ams.web.facade.mouble.user.IRoleDAO;
import com.fengxing.ams.web.facade.mouble.user.IUserDAO;
import com.fengxing.ams.web.facade.mouble.user.UserVO;
import com.fengxing.ams.web.task.translator.Translator;

@Component
public class SessionClearTask {

	private static final Log logger = LogFactory.getLog(SessionClearTask.class);
	@Autowired
	IContextManager contextManager;
	
	public void clearAction() {
		long lastTime = System.currentTimeMillis();
		logger.info("clearAction start:" + lastTime);
		this.contextManager.clearSession();
		logger.info("clearAction end:" + (System.currentTimeMillis() - lastTime));
	}
	
}